# Filters added to this controller will be run for all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
  before_filter :set_charset
  after_filter { CachedModel.cache_reset }

      def set_charset
        content_type = headers["Content-Type"] || 'text/html'
        headers["Content-Type"] = "#{content_type}; charset=windows-1250" if content_type =~ /^text\//
      end
  
end